package org.demo.patten.observer;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public class PhoneDisplay implements Observer {
    private String name;
    public PhoneDisplay(String name) {
        this.name = name;
    }
    public void update(String weather) {
        System.out.println(name + " 接收到天气更新: " + weather);
    }
}
